package gstr

import "strconv"

func StringToInt(input string) int {
	num, err := strconv.Atoi(input)
	if err != nil {
		return -1
	} else {
		return num
	}
}
